package com.portal.service.system;

import net.sf.json.JSONArray;

import com.portal.model.system.Role;
import com.portal.service.InterfaceService;

public interface RoleService extends InterfaceService <Role,String>{
	/**
	 * 得到角色权限菜单树
	 * @return
	 */
	public JSONArray getRolePowerMenuTree(String roleCode);
	
	/**
	 * 设置角色权限
	 * @param codes
	 */
	public void setRolePower(String roleCode ,String menuCodes,String funCodes);
	
	/**
	 * 删除权限
	 * @param roleCode
	 * @param menuCodes
	 * @param buttonCodes
	 */
	public void deleteRolePower (String roleCode ,String menuCode,String funCode);
}
